﻿@using Lihong.Cms.Web.Models
@model NewsListModel

@{
    ViewBag.Title = "新闻列表";
}

<div class="col-md-3">
    <ul>
        @foreach (var cate in Model.NewsCategories)
        {
            <li><a href="/News/Index/@cate.Id">@cate.Name</a> </li>
        }
    </ul>
</div>
<div class="col-md-9">
    <ul>
        @foreach (News news in Model.News)
        {
            <li style="border-bottom:1px dotted #ccc;"><span style="float:right">@news.CreatedOn.ToString("yy/MM/dd")</span><a href="/News/Show/@news.Id">@news.Title</a>   <a href="Delete/@news.Id">删除</a> </li>
        }
    </ul>
</div>
